@php
    $uri = $_SERVER['REQUEST_URI'];
    $uri_path = explode("/", $uri);
    // $uri_path[1] 表示的是哪个栏目块
    // $uri_path[0] 表示的是具体哪个功能链接
    $user = \Illuminate\Support\Facades\Auth::user();
@endphp
<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            <li class="layui-nav-item @if ($uri_path[1] == 'banner') layui-nav-itemed @endif">
                <a href="javascript:;">Banner图</a>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/banner/index') class="layui-this" @endif ><a href="/banner/index">设置Banner图</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item @if ($uri_path[1] == 'shzr') layui-nav-itemed @endif">
                <a href="javascript:;">社会责任</a>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/shzr/index') class="layui-this" @endif ><a href="/shzr/index">社会责任</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/shzr/create') class="layui-this" @endif ><a href="/shzr/create">添加社会责任</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item @if ($uri_path[1] == 'news') layui-nav-itemed @endif">
                <a href="javascript:;">新闻资讯</a>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/news/index') class="layui-this" @endif><a href="/news/index">新闻资讯</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/news/create') class="layui-this" @endif><a href="/news/create">添加新闻</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item @if ($uri_path[1] == 'lawyer') layui-nav-itemed @endif">
                <a href="javascript:">律师团队</a>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/lawyer/index') class="layui-this" @endif ><a href="/lawyer/index">律师团队</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/lawyer/create') class="layui-this" @endif ><a href="/lawyer/create">添加律师</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item @if ($uri_path[1] == 'business') layui-nav-itemed @endif">
                <a href="javascript:;">业务领域</a>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/business/index') class="layui-this" @endif ><a href="/business/index">业务领域</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/business/create') class="layui-this" @endif ><a href="/business/create">添加业务领域</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd @if ($uri == '/business/category/index') class="layui-this" @endif ><a href="/business/category/index">分类信息</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item @if ($uri_path[1] == 'about') layui-nav-itemed @endif">
                <a href="javascript:;">关于我们</a>
                <dl class="layui-nav-child">
                    <dd  @if ($uri == '/about/course') class="layui-this" @endif><a href="/about/course">发展历程</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd  @if ($uri == '/about/about/index') class="layui-this" @endif><a href="/about/about/index">关于我们</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd  @if ($uri == '/about/contact/index') class="layui-this" @endif><a href="/about/contact/index">联系我们</a></dd>
                </dl>
                <dl class="layui-nav-child">
                    <dd  @if ($uri == '/about/setting/index') class="layui-this" @endif><a href="/about/setting/index">基本设置</a></dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
